import request from "../../ulits"
//买房
export let getHouseList=()=>{
  return  request.get("http://api.shbwyz.com/api/second.html?page=0&size=5")
}
//买房详情
export let getHouseDetail=(id)=>{
  return  request.get(`http://api.shbwyz.com/api/second/${id}`)
}
//租房
export let getRentingList=()=>{
  return  request.get("http://api.shbwyz.com/api/rental.html?page=0&size=5")
}
//租房详情
export let getRentingDetail=(id)=>{
  return  request.get(`http://api.shbwyz.com/api/rental/${id}`)
}


